<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>用户详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="/oauthplatform/static/css/x-admin/font.css">
    <link rel="stylesheet" href="/oauthplatform/static/css/x-admin/xadmin.css">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">


            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" name="userName" value="${userInfo.userName}" disabled class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-inline">
                    <input type="text" name="createTime" value="${userInfo.createTime ?string('yyyy.MM.dd')}" disabled class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">是否启用</label>
                <div class="layui-input-inline">
                    <select name="isValid" lay-verify="required" disabled>
                        <option value="1" <#if userInfo.isValid == 1>selected</#if>>是</option>
                        <option value="0" <#if userInfo.isValid == 0>selected</#if>>否</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">系统昵称</label>
                <div class="layui-col-md4">
                    <input type="text" name="nickName" value="${userInfo.nickName}" disabled class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">真实姓名</label>
                <div class="layui-col-md4">
                    <input type="text" name="name" value="${userInfo.name}" disabled class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <select name="isValid" lay-verify="required" disabled>
                        <option value="1" <#if userInfo.gender == 1>selected</#if>>男</option>
                        <option value="2" <#if userInfo.gender == 2>selected</#if>>女</option>
                        <option value="3" <#if userInfo.gender == 3>selected</#if>>其他</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">出生日期</label>
                <div class="layui-input-inline">
                    <#if userInfo.birthday??>
                        <input type="text" name="birthday" value="${userInfo.birthday?string('yyyy.MM.dd')}" disabled class="layui-input">
                    <#else>
                        <input type="text" name="birthday" value="" disabled class="layui-input">
                    </#if>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">联系方式</label>
                <div class="layui-input-inline">
                    <input type="text" name="phone" value="${userInfo.phone!''}" disabled class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">详细地址</label>
                <div class="layui-col-md6">
                    <input type="text" name="address" value="${userInfo.address!''}" disabled class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">身份证号码</label>
                <div class="layui-input-inline">
                    <input type="text" name="idCard" value="${userInfo.idCard!''}" disabled class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">所属地市</label>
                <div class="layui-input-inline">
                    <input type="text" name="area" value="${areaInfo.areaName}" disabled class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">所属机构</label>
                <div class="layui-col-md6">
                    <#if deptInfo??>
                            <input type="text" name="dept" value="${deptInfo.deptName}" disabled class="layui-input">
                        <#else>
                            <input type="text" name="dept"disabled class="layui-input">
                    </#if>
                </div>
            </div>

        </form>
    </div>
</div>
<script type="text/javascript" src="/oauthplatform/static/lib/layui/layui.all.js" charset="utf-8"></script>
<script type="text/javascript" src="/oauthplatform/static/lib/jquery/jquery.3.4.1.js"></script>
<script type="text/javascript" src="/oauthplatform/static/lib/x-admin/xadmin.js"></script>
<script src="/oauthplatform/static/lib/other/html5.min.js"></script>
<script src="/oauthplatform/static/lib/other/respond.min.js"></script>

</html>